#ifndef __LXZ_SGCC_CMD_H__
#define __LXZ_SGCC_CMD_H__

#define LXZAT_SGCC_NUM_MAX 6

typedef enum _LXZAT_SGCC_SOCKET_STATE_E
{
    E_LESS_IDLE,
    E_LESS_CONFIG,
    E_LESS_CONNECTING,
    E_LESS_ESTABLISHED,
    E_LESS_SENDING,
    E_LESS_CLOSING
}LXZAT_SGCC_SOCKET_STATE_E;

#define LXZAT_CHANNEL_ID_MIN    0
#define LXZAT_CHANNEL_ID_MAX    5

#define LXZAT_NET_TYPE_TCPC    0
#define LXZAT_NET_TYPE_TCPS    1
#define LXZAT_NET_TYPE_UDPC    2
#define LXZAT_NET_TYPE_MAX     3

#define LXZAT_VIEW_MODE_HEX     0
#define LXZAT_VIEW_MODE_TXT     1

#define LXZAT_TCP_SNDBUF_SIZE (32*1024)
#define LXZAT_UDP_SNDBUF_SIZE (32*1024)

#define LXZAT_IPBUF_SIZE_MAX 16
#define LXZAT_URL_LENGTH_MAX 255

#define LXZAT_TRYREAD_LEN_MIN 1
#define LXZAT_TRYREAD_LEN_MAX 1460
#define LXZAT_TRYWRITE_LEN_MIN 1
#define LXZAT_TRYWRITE_LEN_MAX 8192

#define SGCC_MAX_BACK_LOG 20

#define SGCC_CLIENT_CONNECT_ACCEPT 0
#define SGCC_CLIENT_CONNECT_REJECT 1

#define SGCC_CLIENT_EMERGE 0
#define SGCC_CLIENT_TRSP 1

#define SGCC_MSS_VALUE 1460

#define LXZAT_SGCC_MYGMR_MANUF "CYCT"
#define LXZAT_SGCC_MYGMR_MODEL "N360SGCC" 
#define LXZAT_SGCC_MYGMR_SW_VER "S112" 
#define LXZAT_SGCC_MYGMR_SW_DATE "161220" 
#define LXZAT_SGCC_MYGMR_HW_VER "H001" 
#define LXZAT_SGCC_MYGMR_HW_DATE "161220" 

#define LXZAT_FTP_TRYWRITE_LEN_MIN 1
#define LXZAT_FTP_TRYWRITE_LEN_MAX 3072
#define LXZAT_FTP_TRYREAD_LEN_MIN 1
#define LXZAT_FTP_TRYREAD_LEN_MAX 1024

#define LXZAT_FTP_DNS_MAX_LEN 128
#define LXZAT_FTP_USR_MAX_LEN 128
#define LXZAT_FTP_PWD_MAX_LEN 128

#define LXZAT_SGCC_USR_MAX_LEN 128
#define LXZAT_SGCC_PWD_MAX_LEN 128
#define LXZAT_SGCC_APN_MAX_LEN 128

#define LXZAT_SGCC_BAUNDTATE_NUM 5

#define LXZAT_SGCC_ICCID_LEN_MAX 32

#endif /* __LXZ_SGCC_CMD_H__ */

